Component({
    externalClasses: [ "custom-dialog" ],
    properties: {
        title: String,
        subtitle: String,
        zIndex: String,
        modalStyle: String,
        showCancel: {
            type: Boolean,
            value: !0
        },
        showClose: {
            type: Boolean,
            value: !1
        },
        cancelText: {
            type: String,
            value: "取消"
        },
        autoCancel: {
            type: Boolean,
            value: !0
        },
        confirmText: {
            type: String,
            value: "确定"
        },
        confirmType: {
            type: String,
            value: "view"
        },
        disabled: Boolean,
        isShown: {
            type: Boolean,
            value: !1
        }
    },
    methods: {
        onConfirm: function() {
            this.triggerEvent("confirm", {}, {});
        },
        onCancel: function() {
            this.data.autoCancel && this.hide(), this.triggerEvent("cancel", {}, {});
        },
        onClose: function() {
            this.hide();
        },
        show: function() {
            this.setData({
                isShown: !0
            });
        },
        hide: function() {
            this.setData({
                isShown: !1
            });
        }
    }
});